package src.main.StructuralPatterns.Flyweight;

// 具体享元：咖啡风味（内部状态）
public class Coffee implements CoffeeFlavor{
    private final String flavor;

    public Coffee(String flavor) {
        this.flavor = flavor;
    }

    @Override
    public void serveCoffee(CoffeeOrderContext context) {
        System.out.println("Serving coffee " + flavor);
        System.out.println("Table num " + context.getTableNumber());
        System.out.println("Customer name " + context.getCustomerName());
    }
}
